package com.example.vue_shop.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lipengwei
 */
@ApiModel(value = "ResultObj", description = "封装好的接口返回对象")
@Data
public class ResultObj<T> {
    @ApiModelProperty(value = "状态", name = "status", example = "true", dataType = "boolean", required = true)
    private boolean status = true;
    @ApiModelProperty(value = "数据", name = "data", example = "你好", dataType = "T", allowEmptyValue = true)
    private T data;
    @ApiModelProperty(value = "描述信息", name = "message", example = "请求成功！", dataType = "String", allowEmptyValue = true)
    private String message;
}
